package comparators;

import basic.*;
import java.util.Comparator;

public class BikeComparator implements Comparator<Bike> {

    @Override
    public int compare(Bike b1, Bike b2) {
        return Integer.compare(b1.getMaxDist() - b1.getMileage(), b2.getMaxDist() - b2.getMileage());

    }
}
